<div class="mg-b-15">
	<div class="uiHeaderBottomBorder">
		<h4 class="mg-b-5"><?=Yii::t('adv', 'profile')?></h4>
	</div>
	<div class="ui-box-gray pa-20">
		<p class="desc"><?=Yii::t('adv', 'ad_information')?></p>
		<br>
		<div class="hasLimit mg-b-10">
			<div class="over-hidden">
				<h4 class="float-left"><?=$model->getAttributeLabel('title')?></h4>
				<span class="desc mg-l-10 float-left"><?=Yii::t('adv', 'title_rule')?></span>
				<span class="float-right charCounter">8</span>
			</div>
			<div class="input text">
			<?php echo $form->textField($model,'title',array('id'=>'AdTitle','maxlength'=>'8'));?>
			<?php echo $form->error($model,'title'); ?>
			</div>
		</div>
		<div class="mg-b-10">
			<div class="over-hidden">
				<h4 class="float-left"><?=$model->getAttributeLabel('link')?></h4>
				<span class="desc mg-l-10 float-left"><?=Yii::t('adv', 'link_ex')?></span>
			</div>
			<div class="over-hidden">
				<div class="float-left">
				<?php echo $form->textField($model,'link',array('id'=>'AdLink','style'=>'margin:0'));?>
				<?php echo $form->error($model,'link'); ?>
				</div>
<!--  	<a style="margin: 0pt 5px;" id="AutoFill" class="btn float-left">Auto Fill</a> -->			
			</div>
		</div>
		<div class="hasLimit mg-b-10">
			<div class="over-hidden">
				<h4 class="float-left"><?=$model->getAttributeLabel('description')?></h4>
				<span class="desc mg-l-10 float-left"><?=Yii::t('adv', 'description_rule')?></span>
				<span class="float-right charCounter">100</span>
			</div>
			<div class="content clear">
				<div class="input textarea">
				<?php echo $form->textArea($model,'description',array('id'=>'AdDescription','maxlength'=>'100','cols'=>'5','rows'=>'3'));?>
				<?php echo $form->error($model,'description'); ?>
				</div>
			</div>
		</div>
		<div>
			<div class="over-hidden">
				<h4 class="float-left"><?=$model->getAttributeLabel('uploadImage')?></h4>
				<span class="desc mg-l-10 float-left"><?=Yii::t('adv', 'image_rule')?></span>
			</div>
			<div class="content clear">
				<?php echo $form->hiddenField($model,'image',array('id'=>'AdReviewImage'));?>
				<?php //echo $form->hiddenField($model,'newImage',array('id'=>'newImage','value'=>'1'));?>
				<div id="ImageSelector">
					<div id="ImageContainer">
					<?php echo $form->fileField($model,'uploadImage',array('id'=>'uploadImage'));?>
    				<?php echo $form->error($model,'uploadImage'); ?>
    				<?php echo $form->hiddenField($model,'x',array('id'=>'AdReviewX'));?>
    				<?php echo $form->hiddenField($model,'y',array('id'=>'AdReviewY'));?>
    				<?php echo $form->hiddenField($model,'w',array('id'=>'AdReviewW'));?>
    				<?php echo $form->hiddenField($model,'h',array('id'=>'AdReviewH'));?>
    				<div id="CorpContainer"></div>
    				</div>
				</div>
				<div class="input checkbox">
					<?php echo $form->checkBox($model,'noImage',array('id'=>'noImage'));?>
	   				<?php echo $model->getAttributeLabel('noImage');?>
	   				<?php echo $form->error($model,'noImage');?>
				</div>
			</div>
		</div>
	</div>
</div>